/**
 * 
 */
package Objetos;

import org.ksoap2.serialization.SoapObject;

/**
 * @author ARMGARCES
 *
 */
public class Cliente {
	//
	private int 	id;
	private int 	cod;
	private String 	nombre;
	private String 	rif;
	private String 	ciudad;
	private char 	zona;
	private int 	ruta;
	private int 	ndevo;
	private double 	mdevo;
	private int		n15;
	private double  m15;
	private int		n30;
	private double  m30;
	private int		n45;
	private double  m45;
	private int		n60;
	private double  m60;
	private int		n90;
	private double  m90;
	private int		n120;
	private double  m120;
	private int		n121;
	private double  m121;
	
	/**
	 * 
	 * @param _soap
	 */
	public Cliente(SoapObject _soap){
		/***********/
		int _id = Integer.parseInt(_soap.getProperty("id").toString());
		setId(_id);
		/***********/
		int _cod = Integer.parseInt(_soap.getProperty("codigo").toString());
		setCodigo(_cod);
		/***********/
		String _nombre = _soap.getProperty("nombre").toString();
		setNombre(_nombre);
		/***********/
		String _rif = _soap.getProperty("rif").toString();
		setRif(_rif);
		/***********/
		String _ciudad = _soap.getProperty("ciudad").toString();
		setNombre(_ciudad);
		/***********/
		char _zona = _soap.getProperty("zona").toString().charAt(0);
		setZona(_zona);
		/***********/
		int _ruta = Integer.parseInt(_soap.getProperty("codrut").toString());
		setRuta(_ruta);
		/***********/
		int _ndevo = Integer.parseInt(_soap.getProperty("ndevo").toString());
		setNdevo(_ndevo);
		double _mdevo = Double.parseDouble(_soap.getProperty("mdevo").toString());
		setMdevo(_mdevo);
		/***********/
		int _n15 = Integer.parseInt(_soap.getProperty("n15").toString());
		setN15(_n15);
		double _m15 = Double.parseDouble(_soap.getProperty("m15").toString());
		setM15(_m15);
		/***********/
		int _n30 = Integer.parseInt(_soap.getProperty("n30").toString());
		setN15(_n30);
		double _m30 = Double.parseDouble(_soap.getProperty("m30").toString());
		setM15(_m30);
		/***********/
		int _n45 = Integer.parseInt(_soap.getProperty("n45").toString());
		setN45(_n45);
		double _m45 = Double.parseDouble(_soap.getProperty("m45").toString());
		setM45(_m45);
		/***********/
		int _n60 = Integer.parseInt(_soap.getProperty("n60").toString());
		setN60(_n60);
		double _m60 = Double.parseDouble(_soap.getProperty("m60").toString());
		setM60(_m60);
		/***********/
		int _n90 = Integer.parseInt(_soap.getProperty("n90").toString());
		setN90(_n90);
		double _m90 = Double.parseDouble(_soap.getProperty("m90").toString());
		setM90(_m90);
		/***********/
		int _n120 = Integer.parseInt(_soap.getProperty("n120").toString());
		setN120(_n120);
		double _m120 = Double.parseDouble(_soap.getProperty("m120").toString());
		setM120(_m120);
		/***********/
		int _n121 = Integer.parseInt(_soap.getProperty("n121").toString());
		setN121(_n121);
		double _m121 = Double.parseDouble(_soap.getProperty("m121").toString());
		setM121(_m121);
	}
	
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param cod the cod to set
	 */
	public void setCodigo(int cod) {
		this.cod = cod;
	}
	/**
	 * @return the cod
	 */
	public int getCodigo() {
		return cod;
	}
	/**
	 * @param nombre the nombre to set
	 */
	public void setNombre(String nombre) {
		this.nombre = nombre;
	}
	/**
	 * @return the nombre
	 */
	public String getNombre() {
		return nombre;
	}
	/**
	 * @param rif the rif to set
	 */
	public void setRif(String rif) {
		this.rif = rif;
	}
	/**
	 * @return the rif
	 */
	public String getRif() {
		return rif;
	}
	/**
	 * @param ciudad the ciudad to set
	 */
	public void setCiudad(String ciudad) {
		this.ciudad = ciudad;
	}
	/**
	 * @return the ciudad
	 */
	public String getCiudad() {
		return ciudad;
	}
	/**
	 * @param zona the zona to set
	 */
	public void setZona(char zona) {
		this.zona = zona;
	}
	/**
	 * @return the zona
	 */
	public char getZona() {
		return zona;
	}
	/**
	 * @param ruta the ruta to set
	 */
	public void setRuta(int ruta) {
		this.ruta = ruta;
	}
	/**
	 * @return the ruta
	 */
	public int getRuta() {
		return ruta;
	}
	/**
	 * @param ndevo the ndevo to set
	 */
	public void setNdevo(int ndevo) {
		this.ndevo = ndevo;
	}
	/**
	 * @return the ndevo
	 */
	public int getNdevo() {
		return ndevo;
	}
	/**
	 * @param mdevo the mdevo to set
	 */
	public void setMdevo(double mdevo) {
		this.mdevo = mdevo;
	}
	/**
	 * @return the mdevo
	 */
	public double getMdevo() {
		return mdevo;
	}
	/**
	 * @param m15 the m15 to set
	 */
	public void setM15(double m15) {
		this.m15 = m15;
	}
	/**
	 * @return the m15
	 */
	public double getM15() {
		return m15;
	}
	/**
	 * @param n15 the n15 to set
	 */
	public void setN15(int n15) {
		this.n15 = n15;
	}
	/**
	 * @return the n15
	 */
	public int getN15() {
		return n15;
	}
	/**
	 * @param n30 the n30 to set
	 */
	public void setN30(int n30) {
		this.n30 = n30;
	}
	/**
	 * @return the n30
	 */
	public int getN30() {
		return n30;
	}
	/**
	 * @param m30 the m30 to set
	 */
	public void setM30(double m30) {
		this.m30 = m30;
	}
	/**
	 * @return the m30
	 */
	public double getM30() {
		return m30;
	}
	/**
	 * @param n45 the n45 to set
	 */
	public void setN45(int n45) {
		this.n45 = n45;
	}
	/**
	 * @return the n45
	 */
	public int getN45() {
		return n45;
	}
	/**
	 * @param m45 the m45 to set
	 */
	public void setM45(double m45) {
		this.m45 = m45;
	}
	/**
	 * @return the m45
	 */
	public double getM45() {
		return m45;
	}
	/**
	 * @param n60 the n60 to set
	 */
	public void setN60(int n60) {
		this.n60 = n60;
	}
	/**
	 * @return the n60
	 */
	public int getN60() {
		return n60;
	}
	/**
	 * @param m60 the m60 to set
	 */
	public void setM60(double m60) {
		this.m60 = m60;
	}
	/**
	 * @return the m60
	 */
	public double getM60() {
		return m60;
	}
	/**
	 * @param n90 the n90 to set
	 */
	public void setN90(int n90) {
		this.n90 = n90;
	}
	/**
	 * @return the n90
	 */
	public int getN90() {
		return n90;
	}
	/**
	 * @param m90 the m90 to set
	 */
	public void setM90(double m90) {
		this.m90 = m90;
	}
	/**
	 * @return the m90
	 */
	public double getM90() {
		return m90;
	}
	/**
	 * @param n120 the n120 to set
	 */
	public void setN120(int n120) {
		this.n120 = n120;
	}
	/**
	 * @return the n120
	 */
	public int getN120() {
		return n120;
	}
	/**
	 * @param m120 the m120 to set
	 */
	public void setM120(double m120) {
		this.m120 = m120;
	}
	/**
	 * @return the m120
	 */
	public double getM120() {
		return m120;
	}
	/**
	 * @param n121 the n121 to set
	 */
	public void setN121(int n121) {
		this.n121 = n121;
	}
	/**
	 * @return the n121
	 */
	public int getN121() {
		return n121;
	}
	/**
	 * @param m121 the m121 to set
	 */
	public void setM121(double m121) {
		this.m121 = m121;
	}
	/**
	 * @return the m121
	 */
	public double getM121() {
		return m121;
	}
	
}
